package iscas.reserve.clients;

import iscas.reserve.common.CustomResult;
import iscas.reserve.dto.DeliveryDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@FeignClient(name = "delivery", url = "http://localhost:8000/api")
@FeignClient(name = "delivery", url = "http://delivery.demo.svc.cluster.local/api")

public interface DeliveryFeignClient {
    @GetMapping("/delivery/toDelivery")
    CustomResult toDelivery(@RequestBody DeliveryDTO deliveryDTO);
}
